import os
from configparser import ConfigParser
from common import Path_API


class read_conf(ConfigParser):
    # 修改初始化方法
    def __init__(self, confile):
        super().__init__()
        self.read(filenames=confile, encoding='utf-8')


conf = read_conf(os.path.join(Path_API.CONF_DIR, "config.ini"))
